package com.tjetc.mapper;

import com.tjetc.domain.Admin;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    @Select("select * from admin where username = #{username} ")
    Admin selectByUsername(String username);


    List<Admin> selAll(String username);

    Integer delById(Integer id);

    Integer add(Admin admin);

    Admin findById(Integer id);
}